/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.model;

import com.exception.DataException;
import com.javabeans.Cargo;
import java.util.List;

/**
 *
 * @author Administrador
 */
public interface CargoManager {
    
    public int getIdCargo() throws DataException;
    public void saveCargo(Cargo ca) throws DataException;
    public Cargo getCargo(int idCargo) throws DataException;
    
    public List<Cargo> getCargosDadosDeBaja() throws DataException;
    public boolean isUseInDetalleAdminist(int idCargo) throws DataException;
    
    public List<Cargo> getCargos() throws DataException;
    public List<Cargo> getCargosBaja() throws DataException;
    public void updateCargo(Cargo ca) throws DataException;
    public void deleteCargo(int idCargo) throws DataException;
    
    public void darBaja(int idCargo) throws DataException;
    public void darAlta(int idCargo) throws DataException;
    
    
}
